package com.kgcx.organization.domain;

import com.kgcx.dbutils.domain.BaseDomain;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Table;
import java.sql.Timestamp;

@Data
@EqualsAndHashCode(callSuper = false)
@Table(name = "t_organization_supplier")
@ApiModel(value = "供应商")
public class Supplier extends BaseDomain {

    /**
     * 名称
     */
    @ApiModelProperty(value = "名称", required = true, example = "美滋滋汽车公司")
    private String name;

    /**
     * 城市行政区域编码
     */
    @ApiModelProperty(value = "城市行政区域编码", required = true, example = "4301")
    private Long cityId;

    /**
     * 公司id
     */
    @ApiModelProperty(value = "公司id", required = true, example = "13122312")
    private String supplierNo;

    /**
     * 地址城市编码
     */
    @ApiModelProperty(value = "地址城市编码", required = true, example = "4301")
    private Integer addressCityId;

    /**
     * 地址
     */
    @ApiModelProperty(value = "地址", required = true, example = "长沙市岳麓区金星大道")
    private String address;

    /**
     * 许可证号
     */
    @ApiModelProperty(value = "许可证号", required = true, example = "123123123")
    private String licenseId;

    /**
     * 经营许可范围
     */
    @ApiModelProperty(value = "经营许可范围", required = true, example = "长沙")
    private String businessArea;

    /**
     * 发证机构名称
     */
    @ApiModelProperty(value = "发证机构名称", required = true, example = "长沙市公安局")
    private String census;

    /**
     * 证有效期起
     */
    @ApiModelProperty(value = "证有效期起", required = true, example = "1511648354000")
    private Timestamp licenseOn;

    /**
     * 证有效期止
     */
    @ApiModelProperty(value = "证有效期止", required = true, example = "1511648354000")
    private Timestamp licenseOff;

    /**
     * 初次领证日期
     */
    @ApiModelProperty(value = "初次领证日期", required = true, example = "1511648354000")
    private Timestamp getLicenseDate;

    /**
     * 证照状态，0=有效，1=失效
     */
    @ApiModelProperty(value = "证照状态，0=有效，1=失效", required = true, example = "0")
    private String licenseState;

    /**
     * 联系人
     */
    @ApiModelProperty(value = "联系人", required = true, example = "梁朝伟")
    private String contact;

    /**
     * 联系人电话
     */
    @ApiModelProperty(value = "联系人电话", required = true, example = "13898887678")
    private String contactPhone;

    /**
     * 紧急联系人
     */
    @ApiModelProperty(value = "紧急联系人", required = true, example = "刘嘉玲")
    private String emergencyContact;

    /**
     * 紧急联系人电话
     */
    @ApiModelProperty(value = "紧急联系人电话", required = true, example = "13444433345")
    private String emergencyContactPhone;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注", required = true, example = "备注一下")
    private String remark;

}